New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregations: add a min_doc_count
option to terms and histogram
#4662
Labels
Comments
If min_doc_count is going to be 0 by default it would be great. |
ghost
assigned jpountz
Jan 8, 2014
@bobrik currently the plan is to have |
Sorry, I actually meant 1. |
jpountz
added a commit
to jpountz/elasticsearch
that referenced
this issue
Jan 10, 2014
`min_doc_count` is the minimum number of hits that a term or histogram key should match in order to appear in the response. `min_doc_count=0` replaces `compute_empty_buckets` for histograms and will behave exactly like facets' `all_terms=true` for terms aggregations. Close elastic#4662
brusic
pushed a commit
to brusic/elasticsearch
that referenced
this issue
Jan 19, 2014
`min_doc_count` is the minimum number of hits that a term or histogram key should match in order to appear in the response. `min_doc_count=0` replaces `compute_empty_buckets` for histograms and will behave exactly like facets' `all_terms=true` for terms aggregations. Close elastic#4662
This was referenced Jan 22, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now terms aggregations may return terms that match one hit or more. The purpose of the
min_doc_count
option is to make it configurable. For example, ifreturns
then
would return
The special case
min_doc_count: 0
will behave similarly to theall_terms
option of facets and also return terms that don't match any hit. For example, we could have the following response:Histograms are going to support this option as well and the
empty_bucket
option will be removed in favor ofmin_doc_count: 0
.The text was updated successfully, but these errors were encountered: